package test04;

public class demo04 {
    public static void main(String[] args) {
        //获得当前线程对象Thread.currentThread()
        String name = Thread.currentThread().getName();
        System.out.println(name);
    }
}
